package com.supercube.sport.yoga.dao;

import com.supercube.sport.yoga.domain.CoursesSupportedCardDTO;
import com.supercube.sport.yoga.vo.CoursesSupportedCardVO;
import com.supercube.sport.yoga.vo.SuportCardVo;

import java.util.List;

public interface CoursesSupportedCardMapper {
    int deleteByPrimaryKey(String id);

    int insert(CoursesSupportedCardDTO record);

    int insertSelective(CoursesSupportedCardDTO record);

    CoursesSupportedCardDTO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CoursesSupportedCardDTO record);

    int updateByPrimaryKey(CoursesSupportedCardDTO record);

    List<CoursesSupportedCardDTO> selectCoursesSupportedCardByCardId(String cardId);

    int deleteCoursesSupportedCardByCardId(String cardId);
    int deleteCoursesSupportedCardByCourseId(String courseId);

    int batchUpdateByPrimaryKey(List<CoursesSupportedCardDTO> coursesSupportedCardDTO);

    int batchUpdateByCourseId(List<CoursesSupportedCardDTO> coursesSupportedCardDTO);

    int batchDeleteByPrimaryKey(List<String> id);

    int batchDeleteByCourseId(List<String> id);

    int batchInsert(List<CoursesSupportedCardDTO> coursesSupportedCardDTOS);

    List<CoursesSupportedCardVO> selectCoursesSupportedCardByUserIdAndCardId(Long userId, String cardId);

    List<SuportCardVo> queryCoursesSupportedCard(String courseId);
}